********************************************************************************
* Program dofile: Concurrent election project***********************************
********************************************************************************


capture program drop ifaulabel
program define ifaulabel 
	lab def IFAUkod 0 "Sweden"
	lab def IFAUkod 26 "Finland", add
	lab def IFAUkod 27 "Denmark", add
	lab def IFAUkod 28 "Norway & Iceland", add
	lab def IFAUkod 29 "Bosnia", add
	lab def IFAUkod 30 "Yugoslavia", add
	lab def IFAUkod 31 "Poland", add
	lab def IFAUkod 32 "UK & Ireland", add
	lab def IFAUkod 33 "Germany", add
	lab def IFAUkod 34 "Mediterranian", add
	lab def IFAUkod 35 "Baltic", add
	lab def IFAUkod 36 "East Europe", add
	lab def IFAUkod 37 "Hungary & Czech & Slovakia", add
	lab def IFAUkod 38 "Benelux & Swizz & Austria", add
	lab def IFAUkod 39 "US & Canada", add
	lab def IFAUkod 40 "Central America", add
	lab def IFAUkod 41 "Chile", add
	lab def IFAUkod 42 "South America", add
	lab def IFAUkod 43 "East Africa", add
	lab def IFAUkod 44 "Mena", add
	lab def IFAUkod 45 "Other Africa", add
	lab def IFAUkod 46 "Iran", add
	lab def IFAUkod 47 "Iraq", add  
	lab def IFAUkod 48 "Turkey", add
	lab def IFAUkod 49 "East Asia", add
	lab def IFAUkod 50 "South East Asia", add
	lab def IFAUkod 51 "South Asia", add
	lab def IFAUkod 52 "Oceania", add
	lab def IFAUkod 53 "Unknown or Stateless", add
end

capture program drop dropdirect
program define dropdirect
	drop AterPnr SenPnr AterPNr KallKod StudDelt StudDeltTyp FoDelt HsDelt ForvInk DekLon ForvErs DispInkPersF04 DispInk04 DispInkKE04 ForLed ForPeng_BDag ForPeng_NDag Stud AldPens SjukRe SjukSum_BDag SjukSum_NDag SjukSum_Belopp Akassa ArbLos ArbLosTyp ALosDag ADelDag Ampol ANysDag ForTid SocBidrPersF04 BostBidrFam BostTillPersF04 BostTillFam peorglopnr ArbstId cfarlopnr AstNr AstKommun Yrkstalln Sektorkod SSYK3 SSYK4 SSYKAr SSYKKalla SSYKStatus KU1SSYKKalla AntalSys AstSNI2002 KU1PeOrgNr KU1CfarNr n 
end
